from django.contrib import admin

from . import models


@admin.register(models.Menu)
class MenuAdmin(admin.ModelAdmin):

    list_display = ('name', 'description')

    class Meta:
        model = models.Menu
        fields = '__all__'


@admin.register(models.FirstLevelElement)
class FirstLevelElementAdmin(admin.ModelAdmin):

    list_display = ('name', 'description')

    class Meta:
        model = models.FirstLevelElement
        fields = '__all__'


@admin.register(models.SecondLevelElement)
class SecondLevelElement(admin.ModelAdmin):

    list_display = ('name', 'description')

    class Meta:
        model = models.SecondLevelElement
        fields = '__all__'


@admin.register(models.ThirdLevelElement)
class ThirdLevelElementAdmin(admin.ModelAdmin):

    list_display = ('name', 'description')

    class Meta:
        model = models.ThirdLevelElement
        fields = '__all__'
